package org.dbrd.detector.tfidf;


@Deprecated
public class IDFItem {

	private String word;
	
	private int frequence;
	
	
	public IDFItem(String word) {
		this.word = word;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((word == null) ? 0 : word.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		IDFItem other = (IDFItem) obj;
		if (word == null) {
			if (other.word != null)
				return false;
		} else if (!word.equals(other.word))
			return false;
		return true;
	}

	public void increaseFrequence() {
		this.frequence++;
	}
	
	
	
	
}
